from django.core.management.base import BaseCommand, CommandError
from django.db import models
# from placeholders import *
import os
from goods.models import Good
from records.models import Record


class Command(BaseCommand):
    def handle(self, *args, **options):
        Good.objects.create(name='电针',price=60).save()
        Good.objects.create(name='红外线', price=15).save()
        Good.objects.create(name='梅花针', price=20).save()
        Good.objects.create(name='火罐', price=30).save()
        Good.objects.create(name='穴位注射', price=60).save()
        Good.objects.create(name='理疗', price=50).save()
        Good.objects.create(name='艾灸', price=50).save()
        Good.objects.create(name='推拿', price=40).save()
        Good.objects.create(name='穴位热敷', price=10).save()
        Good.objects.create(name='经络走罐', price=50).save()
        Good.objects.create(name='中药外敷', price=50).save()
        Good.objects.create(name='小儿推拿', price=60).save()
        Good.objects.create(name='烟嘴药', price=30, isDiscount=0).save()

        Record.objects.create(display='痛风').save()
        Record.objects.create(display='腰疼').save()
        Record.objects.create(display='颈椎').save()
        Record.objects.create(display='麻症').save()
